package com.hrs.enity.db;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hrs.common.enums.Status;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 薪酬标准表
 * @TableName t_salary_scale
 */
@TableName(value ="t_salary_scale")
@Data
public class SalaryScale implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 薪酬标准名称
     */
    private String name;

    /**
     * 制定人
     */
    private String nominator;

    /**
     * 登记人
     */
    private Long registrantId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 基本工资
     */
    private BigDecimal basicSalary;

    /**
     * 交通补助
     */
    private BigDecimal trafficAllowance;

    /**
     * 午餐补助
     */
    private BigDecimal lunchAllowance;

    /**
     * 通信补助
     */
    private BigDecimal communicationAllowance;

    /**
     * 复核意见
     */
    private String reviewOpinion;

    private Long changeId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime changeTime;

    private Long reviewId;


    @ApiModelProperty("复核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    /**
     * 0待复核，1正常
     */
    private Status status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}